<form action="" method="post" id="pm_form">
	<input type="hidden" id="pm_action" name="pm_action" value="" />
	{foreach from=$navigate item=one key=page}
		{if $one|count_characters == 0}{$page}{else}<a href="?page={$one}">{$page}</a>{/if}
	{/foreach}
	<table cellspacing="0">
		<thead>
			<tr>
				<th class="tableLeft"> </th>
				<th width="1"><input type="checkbox" id="pm_all_check"></th>
				<th width="30%">[[Name]]</th>
				<th width="40%">[[Email]]</th>
				<th width="15%">[[Phone Number]]</th>
				<th> </th>
				<th class="tableRight"> </th>
			</tr>
		</thead>
		<tbody>
		{foreach from=$message_list item=one}
			<tr class="{cycle values = 'evenrow,oddrow' advance=true}">
				<td> </td>
				<td><input type="checkbox" name="pm_check[]" value="{$one.sid}" class="pm_checkbox"></td>
				<td>
					{if $one.user_group_id eq "Employer"}
						<a href="{$GLOBALS.site_url}/private-messages/contact/{$one.sid}/">{$one.ContactName}</a>
					{elseif $one.user_group_id eq "JobSeeker"}
						<a href="{$GLOBALS.site_url}/private-messages/contact/{$one.sid}/">{$one.FirstName} {$one.LastName}</a>
					{else}
						<a href="{$GLOBALS.site_url}/private-messages/contact/{$one.sid}/">{$one.username}</a>
					{/if}
				</td>
				<td>
					<a href="{$GLOBALS.site_url}/private-messages/contact/{$one.sid}/">{$one.email}</a>
				</td>
				<td>{$one.PhoneNumber}</td>
				<td><input type="button" name="send-message" value="[[Send Message]]" onclick="javascript:location.href='{$GLOBALS.site_url}/private-messages/send/?to={$one.sid}'"/></td>
				<td> </td>
			</tr>
			<tr>
				<td colspan="7" class="separateListing"> </td>
			</tr>
		{/foreach}
		</tbody>
	</table>
	<div class="clr"><br/></div>
	<input type="button" class="button" value="[[Delete]]" id="pm_controll_delete" />
	<div class="clr"></div>
	{foreach from=$navigate item=one key=page}
		{if $one|count_characters == 0}{$page}{else}<a href="?page={$one}">{$page}</a>{/if}
	{/foreach}
</form>